<template>
  <div class="p-[15px] text-[12px]">
    <div class="flex items-center mb-[14px]">
      <div class="flex-[1]">保险内容</div>
      <div class="flex-[1] flex justify-between items-center">
        <div class="w-[80px] text-center">保险金额</div>
        <div>保费</div>
      </div>
    </div>
    <div class="">
      <div class="flex items-center mb-[20px]" v-for="item in list">
        <div class="flex-[1] flex items-center">
          <img
            :src="
              item.isActive
                ? getAssetsFile('insure/active.png')
                : getAssetsFile('insure/noactive.png')
            "
            class="w-[14px] h-[14px]"
          />
          <div class="ml-[10px]">{{ item.name }}</div>
        </div>
        <div class="flex-[1] flex justify-between">
          <div class="flex items-center">
            <div
              class="w-[82px] h-[22px] border border-[#C9C9C9] rounded-[3px] flex items-center bg-[#FBFBFB] text-[#757575] px-[8px]"
            >
              {{ item.price }}
            </div>
            <span v-if="item.company" class="ml-[5px]">{{ item.company }}</span>
          </div>
          <div>0.00</div>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
import { ref } from "vue";
import getAssetsFile from "@/utils/getImageurl";
const list = ref([
  {
    name: "总包合同工程造价",
    isActive: true,
    price: "111",
    company: "", //单位
  },
  {
    name: "总包合同工程造价",
    isActive: false,
    price: "222",
    company: "万元", //单位
  },
]);
</script>
<style scoped lang="scss">
:deep(.van-cell) {
  padding: 0 !important;
  font-size: 12px !important;
}
</style>
